package com.example.selfcontrol.service;

import com.example.selfcontrol.config.Response;
import com.example.selfcontrol.entity.Article;
import com.example.selfcontrol.entity.resp.StarInfo;

import java.util.List;

public interface StarOptService {
    Response ClickStar(int articleId, int userId);

    StarInfo getStarInfo(int articleId, int userId);

    int CountStar(Long articleId);

    List<Article> UserStar(int userId, int pageNum, int pageSize);

    int personalStarCount(int userId);

    boolean isUserStar(int userId, Long articleId);
}
